import axios from '../request'

// 获取分类
const getCategoryApi = (data: Object) => axios.get('/manage/classify/find', { params: data })

// 获取分类
const getCategoryNumApi = (data?: Object) => axios.get('/manage/classify/find/total', { params: data })

// 添加分类
const addCategoryApi = (data: Object) => axios.post('/manage/classify/add', data)

// 修改分类
const upCategoryApi = (data: Object) => axios.post('/manage/classify/update', data)

// 删除分类
const delCategoryApi = (data: Object) => axios.post('/manage/classify/del', data)


export {
  getCategoryApi,
  addCategoryApi,
  upCategoryApi,
  delCategoryApi,
  getCategoryNumApi
}